<?php
/**
 * bs多规格sku商城系统
 * ============================================================================
 * 版权所有 2024-2099 wltx666.com，并保留所有权利。
 * 网站地址: https://wltx666.com
 * ============================================================================
 * Author: 草上飞
 * Email: wltx@alipay168.cn
 * QQ: 2719875001
 * Date: 2025/3/15
 * 描述:
 */

namespace app\api\controller;

use app\result\auto\RechargeLogResult;
use think\App;

class Recharge extends BaseIndex
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new RechargeLogResult();
    }

    public function ready()
    {
        data_exit_json($this->objResult->api_ready($this->param));
    }

    public function history()
    {
        data_exit_json($this->objResult->api_history($this->user_id, $this->param));
    }

    public function detail()
    {
        data_exit_json($this->objResult->api_detail($this->param));
    }

    public function pay()
    {
        $this->param['token'] = $this->token;
        data_exit_json($this->objResult->api_pay($this->user_id, $this->param));
    }


}
